예제 #1
0
        public string Post([FromBody] memberclaim obj)
        {
            _log4net.Info("claimController postmethod called");
            memberclaimrepo ob = new memberclaimrepo();

            ob.create(obj);
            return("SUCCESSFULLY ADDED");
        }
 public IActionResult Post([FromBody] memberclaim obj)
 {
     _log4net.Info("claimController postmethod called");
     if (ModelState.IsValid)
     {
         try
         {
             memberclaimrepo ob = new memberclaimrepo();
             ob.create(obj);
             return(Ok("SUCCESSFULLY ADDED"));
         }
         catch (Exception)
         {
             return(BadRequest());
         }
     }
     return(BadRequest());
 }