/// <summary> /// Method for delete an existing post by id /// </summary> /// <param name="id"></param> /// <returns></returns> public int Delete(int id) { Repo.Delete(id); Repo.Save(); return(1); }
/// <summary> /// Method for delete an existing post by id /// </summary> /// <param name="id"></param> /// <returns></returns> public int Delete(int id) { Repo.Delete(id); Repo.Save(); return(1); }