public int AddSeason(MvSeason season)
 {
     seasonId = 0;
     ActionProcedures.SpSeasonIns(JsonConvert.SerializeObject(season, new JsonSerializerSettings {
         ContractResolver = new CamelCasePropertyNamesContractResolver()
     }), ref seasonId);
     return(seasonId);
 }
Esempio n. 2
0
 public IActionResult EditSeason([FromBody] MvSeason season)
 {
     try
     {
         seasonService.EditSeason(season);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Esempio n. 3
0
 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()
     }));
 }