public response Update(int id, string fieldValueCollection)
        {
            //DocumentScanatProces item = JsonConvert.DeserializeObject<DocumentScanatProces>(Find(id).Message);
            DocumentScanatProces item = (DocumentScanatProces)(Find(id).Result);

            return(item.Update(fieldValueCollection));
        }
        public response Update(int id, string fieldValueCollection, object file)
        {
            DocumentScanatProces item = JsonConvert.DeserializeObject <DocumentScanatProces>(Find(id).Message);

            byte[] f = GetBytesFromParameter(file);
            item.FILE_CONTENT      = f;
            item.DIMENSIUNE_FISIER = item.FILE_CONTENT.Length;
            return(item.Update(fieldValueCollection));
        }
        public response Update(int id, string fieldValueCollection, object file, ThumbNailSizes[] tSizes)
        {
            //DocumentScanatProces item = JsonConvert.DeserializeObject<DocumentScanatProces>(Find(id).Message);
            DocumentScanatProces item = (DocumentScanatProces)(Find(id).Result);

            byte[] f = GetBytesFromParameter(file);
            item.FILE_CONTENT      = f;
            item.DIMENSIUNE_FISIER = item.FILE_CONTENT.Length;
            response r = item.Update(fieldValueCollection);

            if (r.Status)
            {
                r = item.Update(tSizes);
                return(r);
            }
            else
            {
                return(r);
            }
        }
        public response Update(string fieldValueCollection, object file)
        {
            DocumentScanatProces tmpItem = JsonConvert.DeserializeObject <DocumentScanatProces>(fieldValueCollection);
            //DocumentScanatProces item = JsonConvert.DeserializeObject<DocumentScanatProces>(Find(Convert.ToInt32(tmpItem.ID)).Message);
            DocumentScanatProces item = (DocumentScanatProces)(Find(Convert.ToInt32(tmpItem.ID)).Result);

            byte[] f = GetBytesFromParameter(file);
            item.FILE_CONTENT      = f;
            item.DIMENSIUNE_FISIER = item.FILE_CONTENT.Length;
            return(item.Update(fieldValueCollection));
        }
 public response Update(DocumentScanatProces item, object file, ThumbNailSizes[] tSizes)
 {
     item.FILE_CONTENT      = GetBytesFromParameter(file);
     item.DIMENSIUNE_FISIER = item.FILE_CONTENT.Length;
     return(item.Update(tSizes));
 }
 public response Update(DocumentScanatProces item, ThumbNailSizes[] tSizes)
 {
     return(item.Update(tSizes));
 }
 public response Update(DocumentScanatProces item)
 {
     return(item.Update());
 }