Esempio n. 1
0
        public async Task <HttpResponseMessage> SetFatherFacePhoto(int Fid)
        {
            var result = new HttpResponseMessage(HttpStatusCode.OK);
            var data   = await _httpResponseMessageConfiguerer.GetMIMIContentData(Request);

            //if (data != null)
            //{
            await _FatherDBService.SetFatherPhoto(Fid, data);

            return(result);
            //}
            //else
            //{
            //    throw new HttpResponseException(_httpResponseMessageConfiguerer.NotAcceptable());
            //}
        }
Esempio n. 2
0
        public async Task <HttpResponseMessage> SetCaregiverIdentityCardPhotoFace(int Cid)
        {
            var result = new HttpResponseMessage(HttpStatusCode.OK);
            var data   = await _httpResponseMessageConfiguerer.GetMIMIContentData(Request);

            //if (data != null)
            //{
            await _CaregiverDBService.SetIdentityCardFace(Cid, data);

            return(result);
            //}
            //else
            //{
            //    throw new HttpResponseException(Request.CreateResponse(_httpResponseMessageConfiguerer.NotAcceptable()));
            //}
        }
Esempio n. 3
0
        public async Task <HttpResponseMessage> setOrphanFacePhoto(int Oid)
        {
            var result = new HttpResponseMessage(System.Net.HttpStatusCode.OK);

            var data = await _httpResponseMessageConfiguerer.GetMIMIContentData(Request);

            //if (data == null || data.Length == 0)
            //    return _httpResponseMessageConfiguerer.NotAcceptable();

            var Successed = await _OrphanDBService.SetOrphanFaceImage(Oid, data);

            if (Successed)
            {
                return(result);
            }
            else
            {
                return(new HttpResponseMessage(System.Net.HttpStatusCode.NotModified));
            }
        }