Beispiel #1
0
 public JsonResult DeleteUserPosition(int Id)
 {
     try
     {
         _userpositionService.DeleteUserPosition(_userpositionService.GetUserPositionById(Id));
         return(JsonResultExtensions.returnMaxJsonResult(""));
     }
     catch (Exception exception)
     {
         return(JsonResultExtensions.returnMaxJsonResult("Hata Oluştu.. " + exception.Message));
     }
 }
Beispiel #2
0
        public async Task <IActionResult> DeleteUserPosition(int positioId)
        {
            var userPos = await _userPositionService.GetUserPosition(positioId);

            if (userPos == null)
            {
                return(NotFound(positioId));
            }

            await _userPositionService.DeleteUserPosition(positioId);

            return(Ok(positioId));
        }
Beispiel #3
0
        public IActionResult DeleteUserPosition(int positioId)
        {
            _userPositionService.DeleteUserPosition(positioId);

            return(Ok());
        }