public ActionResult GetEditionById(int id)
        {
            var results = EditionData.GetEditionById(id);

            var jsonResult = SerializeObjectToJson(results);

            return(jsonResult);
        }
        public ActionResult GetAllEditionsForPublication(int id)
        {
            var results = EditionData.GetAllEditionsForPublication(id);

            var jsonResult = SerializeObjectToJson(results);

            return(jsonResult);
        }
 public ActionResult SaveEdition(EditionBO editionEntity)
 {
     if (editionEntity.EST_EditionID != 0 && editionEntity.EST_EditionID != null)
     {
         EditionData.Update(editionEntity);
         return(new HttpStatusCodeResult(201, "Update successful"));
     }
     else
     {
         EditionData.Save(editionEntity);
         return(new HttpStatusCodeResult(201, "Creation successful"));
     }
 }
        public ActionResult DeleteEditions(List <int> ids)
        {
            EditionData.DeleteEditions(ids);

            return(new HttpStatusCodeResult(200, "Deletion Successful"));
        }