public TransactionStatusModel AddNewUser(UserDTO user) { TransactionStatusModel transStatus = new TransactionStatusModel(); ProjectDataService dataService = new ProjectDataService(); using (TransactionScope tran = new TransactionScope()) { try { transStatus = dataService.AddNewUser(user); } catch (Exception ex) { transStatus.ReturnStatus = false; transStatus.ReturnMessage.Add("Add user Failed"); return(transStatus); } tran.Complete(); } return(transStatus); }