示例#1
0
 internal static NeededSubCategoryVm FromModel(NeededSubCategory model)
 {
     return(new NeededSubCategoryVm
     {
         Id = model.Id,
         SubCategory = SubCategoryVm.FromModel(model.SubCategory),
         NeedLevel = model.NeedLevel
     });
 }
示例#2
0
 public static SearchVm FromModel(Search search)
 {
     return new SearchVm
     {
         Category = CategoryVm.FromModel(search.Category),
         SubCategory = SubCategoryVm.FromModel(search.SubCategory),
         Keywords = search.Keywords,
         City = search.City,
         State = search.State,
         ZipCode = search.ZipCode
     };
 }