Example #1
0
 public JArray PutIdentificationtypes(Identification_types objIdentificationtypes)
 {
     try
     {
         _identificationtypes.Update(objIdentificationtypes);
         return(GetIdentificationtypes());
         //IList<Identification_types> objIdentificationtypess = new List<Identification_types>();
         //objIdentificationtypess = _identificationtypes.GetAllData();
         //return JArray.Parse(objIdentificationtypess.ToJson(new JsonWriterSettings { OutputMode = JsonOutputMode.Strict }));
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 public JArray PostIdentificationtypes(Identification_types objIdentificationtypes)    //insert data to the user table
 {
     try
     {
         objIdentificationtypes.audit_ts = DateTime.Now;
         //ObjectId i;
         _identificationtypes.Create(objIdentificationtypes);
         return(GetIdentificationtypes());
         //IList<Identification_types> objIdentificationtypess = new List<Identification_types>();
         //objIdentificationtypess = _identificationtypes.GetAllData();
         //return JArray.Parse(objIdentificationtypess.ToJson(new JsonWriterSettings { OutputMode = JsonOutputMode.Strict }));
     }
     catch (Exception)
     {
         throw;
     }
 }