public IActionResult Delete(int id)
        {
            //var currentUserProfile = GetCurrentUserProfile();
            //if (currentUserProfile.Id != _commentRepository.GetCommentById(id).UserProfileId || currentUserProfile.UserTypeId != 1)
            //{
            //    return Unauthorized();
            //}

            _printerRepository.Delete(id);
            return(NoContent());
        }
Пример #2
0
        public IActionResult DeletePrinter(int printerID)
        {
            _printerRepository.Delete(printerID);

            return(Json(printerID));
        }