Esempio n. 1
0
        public HttpResponseMessage GetByMailIdAndAttachementId(int id, int attId, string extention = null, int?status = null)
        {
            var attachement = _attachementRepository.GetAttachementsByMailIdAndAttachementIdAndFileExtentionAndStatusId(id, attId, extention, status);

            if (attachement == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, attachement));
        }