/// <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))); }
/// <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))); }