public void TestUpdateCategory(int cid, string cname, string cdetails)
 {
     try
     {
         CategoryModel cat = new CategoryModel {
             Cid = cid, Cname = cname, Cdetails = cdetails
         };
         var res = controller.updatecategory(cat);
         Assert.NotNull(res);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.InnerException.Message);
     }
 }