public int AcceptRN(int?RNId) { int id = 0; try { id = _repository.AcceptRN(RNId); } catch (Exception ex) { throw ex; } return(id); }