forked from simplcommerce/SimplCommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CRUD for Warehouses (simplcommerce#389)
* Warehouse CRUD
- Loading branch information
Showing
13 changed files
with
615 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/Modules/SimplCommerce.Module.Inventory/Models/Warehouse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/Modules/SimplCommerce.Module.Inventory/ViewModels/WarehouseVm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SimplCommerce.Module.Inventory.ViewModels | ||
{ | ||
public class WarehouseVm | ||
{ | ||
public long Id { get; set; } | ||
|
||
[Required] | ||
public string Name { get; set; } | ||
|
||
public long AddressId { get; set; } | ||
|
||
public string ContactName { get; set; } | ||
|
||
public string Phone { get; set; } | ||
|
||
public string AddressLine1 { get; set; } | ||
|
||
public string AddressLine2 { get; set; } | ||
|
||
public string City { get; set; } | ||
|
||
public string PostalCode { get; set; } | ||
|
||
public long? DistrictId { get; set; } | ||
|
||
[Required] | ||
public long StateOrProvinceId { get; set; } | ||
|
||
[Required] | ||
public long CountryId { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.