public int AddSeason(MvSeason season) { seasonId = 0; ActionProcedures.SpSeasonIns(JsonConvert.SerializeObject(season, new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }), ref seasonId); return(seasonId); }
public IActionResult EditSeason([FromBody] MvSeason season) { try { seasonService.EditSeason(season); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public IActionResult Season([FromBody] MvSeason season) { try { int seasonId = seasonService.AddSeason(season); return(Ok(seasonId)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public void EditSeason(MvSeason season) { ActionProcedures.SpSeasonUpd(JsonConvert.SerializeObject(season, new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() })); }