public OtherBodyModel Post([FromBody] OtherBodyModel otherbody) { Response.StatusCode = 201; string result = OtherBodyService.CreateOtherBody(otherbody, dbConn); otherbody.Id = Convert.ToInt32(result); return(otherbody); }
public string UpdateOtherBody([FromRoute] int id, [FromBody] OtherBodyModel otherbody) { return(OtherBodyService.UpdateOtherBody(otherbody, dbConn)); }
public string DeleteOtherBody([FromRoute] int id) { return(OtherBodyService.DeleteOtherBody(id, dbConn)); }
public OtherBodyModel GetOtherBody([FromRoute] int id) { return(OtherBodyService.GetOtherBody(id, dbConn)); }
public List <OtherBodyModel> Get() { return(OtherBodyService.GetAllOtherBodies(dbConn)); }