public Result Save(UMODTO obj) { try { using (DbCommand cmd = Common.dbConn.GetStoredProcCommand("MSTUMOSave")) { Common.dbConn.AddInParameter(cmd, "Id", DbType.Int32, obj.Id); Common.dbConn.AddInParameter(cmd, "Name", DbType.String, obj.Name); Common.dbConn.ExecuteNonQuery(cmd); return(new Result { Id = 1, Message = "Saved", ResultStatus = OperationStatus.SavedSuccessFully }); } } catch (Exception exception) { throw exception; } return(null); }
public Result Save(ERPDTOBase obj) { UMODTO accountGroup = obj as UMODTO; return(new UMODAL().Save(accountGroup)); }