public async Task <IActionResult> LoadMavcCard([FromBody] OnlineClocking online) { try { return(Ok(this.Content(JsonConvert.SerializeObject(await _account.LoadMavcCard(online.ClubName, online.MobileNumber, online.Keyword, online.DBName)), "application/json"))); } catch (Exception ex) { //ExceptionLog exception = await _exceptionService.UpsertException(ex, "GetUserRoles", "",""); return(StatusCode((int)HttpStatusCode.InternalServerError, new CustomMesageError(ex.Message).Message)); } }
public async Task <IActionResult> OnlineClocking([FromBody] OnlineClocking online) { try { return(Ok(this.Content(JsonConvert.SerializeObject(await _race.OnlineClocking(online)), "application/json"))); } catch (Exception ex) { //ExceptionLog exception = await _exceptionService.UpsertException(ex, "GetUserRoles", "",""); return(StatusCode((int)HttpStatusCode.InternalServerError, new CustomMesageError(ex.Message).Message)); } }
public async Task <DataSet> OnlineClocking(OnlineClocking online) { try { CommonRepository common = new CommonRepository(); return(await common.WebClockingSave(online.ClubName, online.MobileNumber, online.Keyword, "Online", online.DBName)); } catch (Exception ex) { throw ex; } }
public async Task <DataSet> OnlineClocking(OnlineClocking online) { try { //string[] value = online.Keyword.Split(" "); //if (value.Length > 0) //{ // online.ClubName = value[0]; // online.Keyword = "CLOCK" + //} return(await this._race.OnlineClocking(online)); } catch (Exception ex) { throw ex; } }