public bool FinishCheckbox(FinishCheckboxReq request) { try { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@Id", request.ID); parameters.Add("@Finish", request.Finish); var id = SqlMapper.ExecuteScalar <bool>(con, "FinishCheckbox", param: parameters, commandType: CommandType.StoredProcedure); return(id); } catch (Exception ex) { throw ex; //return 0; } }
public bool FinishCheckbox([FromBody] FinishCheckboxReq request) { return(_todoService.FinishCheckbox(request)); }
public bool FinishCheckbox(FinishCheckboxReq request) { return(_todoRepository.FinishCheckbox(request)); }