public Page UpdateOnePost(Post post) { Page page = new Page(); page.Success = _iPostProvider.UpdateOnePost(post); page.Code = page.Success?EnumCode.Success:EnumCode.Failed; return(page); }