public void UpdateEducationModule() { BLModel.EducationID = 1; BLModel.EducationModuleName = "test update dfgd module"; BLModel.EducationModuleTime = "35"; BLModel.EducationModuleDescription = "Test desc update"; BLModel.EducationModuleDate = DateTime.Now; BLModel.EducationModuleID = 42; int result = _educationModuleBL.UpdateEducationModule(BLModel); Assert.IsTrue(result > 0, "Unable to update"); }
public int UpdateEducationModule(DTO.EducationModule educationModule) { return(_educationModule.UpdateEducationModule(Mapper.Map <DTO.EducationModule, HCRGUniversity.Core.Data.Model.EducationModule>(educationModule))); }