internal static NeededSubCategoryVm FromModel(NeededSubCategory model) { return(new NeededSubCategoryVm { Id = model.Id, SubCategory = SubCategoryVm.FromModel(model.SubCategory), NeedLevel = model.NeedLevel }); }
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 }; }