Exemplo n.º 1
0
 /// <summary>
 /// Insert into DB a department object
 /// </summary>
 /// <param name="department">Deparment view model send as param with default or specific props</param>
 /// <returns></returns>
 public Task <int> InsertDepartment(DepartmentVM department)
 {
     return(InsertDepartment(_adapter.ConvertToTFromU <DepartmentModel, DepartmentVM>(department)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Insert into DB a plant object
 /// </summary>
 /// <param name="plant">View model</param>
 /// <returns></returns>
 public Task <int> InsertPlant(PlantVM plant)
 {
     return(InsertPlant(_adapter.ConvertToTFromU <PlantModel, PlantVM>(plant)));
 }