public static string AddThirdCategory(string ThirdCategoryName, int SubCatID) { try { PAWDStoreEntities context = new PAWDStoreEntities(); var status = context.ThirdCategoryInsert(SubCatID, ThirdCategoryName).SingleOrDefault(); return(JsonConvert.SerializeObject(status)); } catch (Exception ex) { throw ex.InnerException; } }