コード例 #1
0
 public async Task <IActionResult> CreateOrUpdate([FromBody] PLClubdto plclubDTO)
 {
     //if (userid <= 0)
     //{
     //    return BadRequest(Tuple.Create(false, "User Not Exist"));
     //}
     return(Ok(Tuple.Create(true, await _plclubRepository.CreateOrUpdatePlClub(_mapper.Map <PLClub>(plclubDTO)))));
 }
コード例 #2
0
 public async Task <IActionResult> DeleteDepartment([FromBody] PLClubdto plclubDTO)
 {
     return(Ok(await _plclubRepository.DeleteDepartment(_mapper.Map <PLClub>(plclubDTO))));
 }