public SingleRsp DeleteTeacher(TeacherReq tea) { var res = new SingleRsp(); Teacher teacher = new Teacher(); teacher.Id = tea.Id; teacher.Fullname = tea.Fullname; teacher.Email = tea.Email; teacher.Phone = tea.Phone; teacher.Description = tea.Description; res = _rep.DeleteTeacher(teacher); return(res); }
public IActionResult DeleteStudent([FromBody] TeacherReq req) { var res = _svc.DeleteTeacher(req); return(Ok(res)); }
public IActionResult UpdateTeacher([FromBody] TeacherReq req) { var res = _svc.UpdateTeacher(req); return(Ok(res)); }