コード例 #1
0
        internal static T Delete <T>(ServiceContext context, T entity) where T : IEntity
        {
            //Initializing the Dataservice object with ServiceContext
            DataService.DataService service = new DataService.DataService(context);

            //Deleting the Bill using the service
            T deleted = service.Delete <T>(entity);

            return(deleted);
        }