예제 #1
0
        public async Task <string> SaveDocument(string id, [FromBody] Models.Document doc)
        {
            EmailService es = new EmailService();

            es.SendEmail();
            return(await AppUtilsServices.Put("/jeevehmarket/" + id, doc));
        }
예제 #2
0
 public async Task <string> Document(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(await AppUtilsServices.Get("/jeevehmarket/_all_docs"));
     }
     return(await AppUtilsServices.Get("/jeevehmarket/" + id));
 }
예제 #3
0
 public async Task <Stream> attachments(string id, string name)
 {
     return(await AppUtilsServices.GetAttachment("/jeevehmarket/" + id + @"/" + name).Content.ReadAsStreamAsync());
 }
예제 #4
0
 public async Task <string> GetAllArticles()
 {
     return(await AppUtilsServices.Get("/jeevehmarket/_design/article/_view/all"));
 }
예제 #5
0
 public async Task <string> GetAllUsers()
 {
     return(await AppUtilsServices.Get("/jeevehmarket/_design/user/_view/all"));
 }
예제 #6
0
 public async Task <string> GetAllDesigns()
 {
     return(await AppUtilsServices.Get("/jeevehmarket/_design_docs"));
 }
예제 #7
0
 public async Task <string> Test()
 {
     return(await AppUtilsServices.Get("/jeevehmarket/_all_docs"));
 }