public Tuple <bool, string, string> Confirmation(long userId, long personIdOnBehalfof, long requestId, long postuserId, int rowNumber, string description) { try { var valid = InsertCartable(CartableStatus.Confirmed, userId, personIdOnBehalfof, requestId, postuserId, rowNumber, true, description); if (!valid) { return(new Tuple <bool, string, string>(false, "خطا در تایید درخواست", null)); } _unitOfWork.SaveChanges(); var signature = _personelRepository.Where(p => p.PersonId == userId).FirstOrDefault()?.Signature; return(new Tuple <bool, string, string>(true, "درخواست تایید شد", signature)); } catch (Exception exception) { return(new Tuple <bool, string, string>(false, "عملیات با مشکل مواجه شده است", null)); } }