public IActionResult AddTeacherToSchool([FromBody] TeacherSchools teacherSchools) { var data = _teacherSchoolsService.Add(teacherSchools); if (data.Success) { return(Ok(data)); } return(BadRequest(data.Message)); }
public IResult Update(TeacherSchools teacherSchools) { try { _ITeacherSchoolsDal.Update(teacherSchools); return(new SuccessResult(message: Contants.Messages.UpdateMessage)); } catch (Exception ex) { return(new ErrorResult(message: ex.Message)); } }