public string AddCategory(Cog.MLIAD.BusinessLogic.Associate.Category category) { using (AssociateConnDataContext asscon = new AssociateConnDataContext()) { try { int retasct = 0; retasct = asscon.Add_Category(category.CategoryDesc, category.IsActive); if (!(retasct == 0)) return "success"; else return "failure"; } catch (Exception ex) { throw ex; } } }