public BlogDTO Create(BlogDTO blog) { if (string.IsNullOrEmpty(blog.BlogTitle) || string.IsNullOrEmpty(blog.BlogText)) { return(null); } Blog dboBlog = BlogMapper(blog); dboBlog = _blogDAL.Add(dboBlog); return(BlogMapper(dboBlog)); }
public BlogDTO Create(BlogDTO blog) { if (string.IsNullOrEmpty(blog.BlogTitle) || string.IsNullOrEmpty(blog.BlogText)) { return(null); } Blog dboBlog = BlogMapper(blog); dboBlog = _blogDAL.Add(dboBlog); return(BlogMapper(dboBlog)); }