Exemplo n.º 1
0
        public OtherBodyModel Post([FromBody] OtherBodyModel otherbody)
        {
            Response.StatusCode = 201;
            string result = OtherBodyService.CreateOtherBody(otherbody, dbConn);

            otherbody.Id = Convert.ToInt32(result);
            return(otherbody);
        }
Exemplo n.º 2
0
 public string UpdateOtherBody([FromRoute] int id, [FromBody] OtherBodyModel otherbody)
 {
     return(OtherBodyService.UpdateOtherBody(otherbody, dbConn));
 }
Exemplo n.º 3
0
 public string DeleteOtherBody([FromRoute] int id)
 {
     return(OtherBodyService.DeleteOtherBody(id, dbConn));
 }
Exemplo n.º 4
0
 public OtherBodyModel GetOtherBody([FromRoute] int id)
 {
     return(OtherBodyService.GetOtherBody(id, dbConn));
 }
Exemplo n.º 5
0
 public List <OtherBodyModel> Get()
 {
     return(OtherBodyService.GetAllOtherBodies(dbConn));
 }