Beispiel #1
0
        public ObjectResponseHandler <TModel> Create(TModel Data)
        {
            ObjectResponseHandler <TModel> retResult = new ObjectResponseHandler <TModel>();

            retResult.Data    = Data;
            retResult.Message = Helper.OperationSuccess;
            if (Data == null)
            {
                retResult.Message = Helper.NoRecordFound;
            }
            return(retResult);
        }
Beispiel #2
0
        public ObjectResponseHandler <TModel> Create(TModel Data, string message)
        {
            ObjectResponseHandler <TModel> retResult = new ObjectResponseHandler <TModel>();

            retResult.Data    = Data;
            retResult.Message = message;
            if (Data == null)
            {
                retResult.Message = Helper.NoRecordFound;
            }
            return(retResult);
        }